<%@ page import="java.text.DateFormat,
                 java.text.SimpleDateFormat"%>
 <%--
 *  File:   ProdPriceInfo.jsp
 *  Desc:	ProdPriceInfo
 *
 *  Date		         Author		      Changes
 *  2006-3-15	  rogerwang		  Created
 *
 *  Copyright (C) 2000 - 2005 Oval Technologies, Inc.
 *  All rights reserved.
 *
 *  This software is the confidential and proprietary information of Oval
 *  Technologies, Inc. ("Confidential Information").  You shall not
 *  disclose such Confidential Information and shall use it only in
 *  accordance with the terms of the license agreement you entered into
 *  with Oval.
--%>
<%
		//init param
  	String privilegeCode = "10203";
		String strModuleName = "COM";  	
  	String contextPath = request.getContextPath();
%>
<%@ include file="/inc/CommonHeader.inc" %>

<html>
<head>
<title>ProdPriceInfo</title>
<PageFlow:CheckPageFlow pageName="p_prodpriceinfo"/>
<%
    boolean bIsView = false;
    if ("view".equalsIgnoreCase(displayflag)){
        bIsView = true;
    }
    Vector totalsummary = (Vector)pageContext.getAttribute("totalsummary");
        if (totalsummary == null){
            totalsummary = new Vector();
        }
%>
<%@ include file="/inc/CatchError.inc" %>

<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<link rel="stylesheet" href="<%=contextPath%>/css/<%= strLanguageCode %>/main.css" type="text/css">
<script language="JavaScript" src="<%=contextPath%>/css/<%= strLanguageCode %>/script.js"></script>
<script language="JavaScript" src="<%=contextPath%>/js/ScriptLib.js"></script>
<%@ include file="/inc/NewCalendar.inc" %>
<script language="JavaScript" src="<%=contextPath%>/js/FuncLib.js"></script>


<script language="JavaScript">
<%--  put your custom script here   --%>

function page_selectLine(idx)
{
    document.cform.tridx.value = idx;
   //  alert(idx);
}

</script>
</head>
<body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">
    <table border=0 cellpadding=0 cellspacing=0 width="100%">
  <tr>
    <td valign=top>
      <table border=0 cellpadding=1 cellspacing=0 width="100%">
        <tbody>
        <tr>
          <td bgcolor=#000000 style="PADDING-BOTTOM: 1px; PADDING-LEFT: 1px; PADDING-RIGHT: 1px; PADDING-TOP: 0px">
            <table bgcolor=#000000 border=0 cellpadding=0 cellspacing=0 width="100%">
              <tr>
                <td  bgcolor=#ffffff style="PADDING-BOTTOM: 3px; PADDING-LEFT: 3px; PADDING-RIGHT: 3px; PADDING-TOP: 3px" valign="top">
                  <div id=div2 style="HEIGHT: 415px; OVERFLOW: auto">
                    <table border="1" cellspacing="0" bordercolorlight="#999999" bordercolordark="#FFFFFF" align="center" width="100%" cellpadding="1">
                       <tr class="deepblue-left">
                            <td class="title_center">
                              <%= label.getLabelName("L_StartTime") %>
                            </td>
                            <td class="title_center">
                                <%= label.getLabelName("L_EndTime") %>
                            </td>
                            <td class="title_center">
                                <%= label.getLabelName("L_ExWorksPrice") %>
                            </td>
                            <td class="title_center">
                                <%= label.getLabelName("L_WholeSalePriceWithoutTax") %>
                            </td>
                            <td class="title_center">
                               <%= label.getLabelName("L_Listprice") %>
                            </td>
                            <td class="title_center">
                               <%= label.getLabelName("L_UnitPrice") %>
                            </td>
                            <td class="title_center">
                               <%= label.getLabelName("L_NTSFactor") %>
                            </td>
                            <td class="title_center">
                               <%= label.getLabelName("L_ActivityStatus") %>
                            </td>
                        </tr>
<%--    main trs    --%>
<span id="olddetail" >
                <logic:iterate id="onerow" collection="<%= totalsummary%>"  indexId="idx">
                      <%
                        HashMap curHash=(HashMap) onerow;

                        String  strClassType = "";
                        if(idx.intValue()%2 == 0){
                            strClassType = "td-listrom";
                        }
                        else{
                            strClassType = "none";
                        }

                    %>
                       <tr  onMouseOver="this.className='tr-over'" onMouseOut="this.className='<%=JspHelper.filterNull( strClassType )%>'" class="<%=JspHelper.filterNull( strClassType )%>">
                        <td >
                            <custom:write name="onerow" property="startdate" dataType="date"  dataFormatName="dateformat" nbsp="true"/>
                        </td>
                        <td >
                            <custom:write name="onerow" property="enddate"  dataFormatName="dateformat" nbsp="true"/>
                        </td>
                        <td>
                            <custom:write name="onerow" property="factoryprice" dataType="number"  dataFormatName="priceformat" nbsp="true"/>
                        </td>
                        <td>
                            <custom:write name="onerow" property="untaxtradeprice" dataType="number" dataFormatName="priceformat" nbsp="true"/>
                        </td>
                        <td>
                            <custom:write name="onerow" property="listprice" dataType="number" dataFormatName="priceformat" nbsp="true"/>
                        </td>
                        <td>
                            <custom:write name="onerow" property="ntsprice" dataType="number" dataFormatName="priceformat" nbsp="true"/>
                        </td>
                        <td>
                            <custom:write name="onerow" property="ntsfactor" dataType="number" nbsp="true"/>
                        </td>
                        <td>
                            <custom:write name="onerow" property="statusname" nbsp="true"/>
                        </td>
                     </tr>
                    </logic:iterate>
				</span>
                    </table>

                  </div>
                </td>
              </tr>
            </table>
          </td>
        </tr>
        </tbody>
      </table>
    </td>
  </tr>
  <tr> 
    <td class='td_center' height="39"><a onclick="javascript:parent.up.page_goback();"><custom:button type="1" label="L_Back" imgsrc="back.gif" border="0" style="width:60"/></a></td>
  </tr>
</table>
</body>
</html>
<%if(totalsummary.size()>0){%>
<script language="javascript">
cform.productpriceid.value=cform.productpriceid0.value;
</script>
<%}%>
